package com.alan.product.issue.content;

import lombok.extern.slf4j.Slf4j;

/**
 * 日志到底怎么打印？很多同学搞不清楚。
 */
@Slf4j
public class LogTest2 {
    public static void main(String[] args) {
        test1(100);
    }

    private static void test1(int a) {
        log.info("call the test1, a=[{}]", a);
    }

    private static int test2(int a, int b) {
        try {
            return a / b;
        } catch (Exception e) {
            log.error("call test2 error, a=[{}], b=[{}]", a, b, e);
            return 0;
        }
    }

}
